<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border=1px style="margin: auto ;text-align: center"  >
    <tr>
        <td colspan="9" ><a href="{% url 'addbook' %}">新增</a></td>
    </tr>
    <tr>
            <td>id编号</td>
            <td>图书名称</td>
            <td>作者</td>
            <td>出版日期</td>
            <td>价格</td>
            <td>类别</td>
            <td>页数</td>
            <td>操作</td>
            <td>操作</td>
    </tr>

        {% for allbook in allbooks %}
            <tr>
                <td>{{ allbook.0 }}</td>
                <td>{{ allbook.1 }}</td>
                <td>{{ allbook.2 }}</td>
                <td>{{ allbook.3 }}</td>
                <td>{{ allbook.4 }}</td>
                <td>{{ allbook.5 }}</td>
                <td>{{ allbook.6 }}</td>

                <td><a href="{% url 'delete_id' bookid=allbook.0 %}">删除</a></td>
                <td><a href="{% url 'update' bookid=allbook.0 %}">修改</a></td>

            </tr>

        {% endfor %}



</table>
</body>
</html>